<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .div1{
            border: 3px solid red;
            width: 700px;
            height:500px;
            background-color: #f5f1fd;
        }
        .div2{
            position:relative;
            top:25%;
            width: 400px;
            height: 100px;
            background-color: #0b0b0b;
        }
    </style>
</head>
<body>
<div class="div1">
    <div class="div2"></div>
</body>
</html>